//
//  GameUtil.h
//  DiceWar
//
//  Created by Xiao  Feng on 17/6/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#ifndef GAME_UTIL_GameUtil_H_
#define GAME_UTIL_GameUtil_H_

#include "cocos2d.h"

namespace GameUtil
{
    cocos2d::CCSize getWindowSize();
    
    cocos2d::CCPoint getPointFromLocationInView(const cocos2d::CCPoint& location);
    
    void setRelativeToScreenPosition(cocos2d::CCNode* pNode, const cocos2d::CCPoint& relativePosition);
    void setRelativeToScreenSize(cocos2d::CCNode* pNode, const cocos2d::CCSize& relativeSize);
}

#endif //GAME_UTIL_GameUtil_H_
